package com.zara.store.client.clientmodel;


import com.zara.store.client.model.StoreProxy;
import com.zara.store.common.ProductVO;

public class RetailProduct {
	
	private StoreProxy sp;
	private ProductVO productVO;
	
	public RetailProduct(StoreProxy proxy) {
		this.sp = proxy;
	}

	public void queryProduct(String barcode) {
		productVO = sp.queryProduct(barcode);
	}
	
	public boolean hasProduct() {
		return productVO != null;
	}
	
	public ProductVO getProductVO() {
		return productVO;
	}

}
